package Vista;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.LayoutStyle;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import Controlador.ControAplicar;
import Controlador.ControEstudiante;



public class Vaplicarevaluacion extends javax.swing.JFrame {
	public JLabel lblapli;
	public JButton btnapli;

	
	public Vaplicarevaluacion() {
		super();
		initGUI();
	}
	
	private ControAplicar contapli;
	private void initGUI() {
		try {
			GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane());
			getContentPane().setLayout(thisLayout);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				lblapli = new JLabel();
				lblapli.setText("Aplicar Evaluaciones a los Estudiantes de la Seccion ");
			}
			{
				btnapli = new JButton();
				btnapli.setText("Aplicar");
			}
			thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
				.addContainerGap(51, 51)
				.addComponent(lblapli, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE)
				.addGap(32)
				.addComponent(btnapli, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
				.addContainerGap(102, Short.MAX_VALUE));
			thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
				.addContainerGap(17, 17)
				.addGroup(thisLayout.createParallelGroup()
				    .addComponent(lblapli, GroupLayout.Alignment.LEADING, 0, 381, Short.MAX_VALUE)
				    .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				        .addGap(136)
				        .addComponent(btnapli, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
				        .addGap(0, 160, Short.MAX_VALUE))));
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
		acontroladora();
		

	}
	private void acontroladora() {
		
		contapli = new ControAplicar(this);
		btnapli.addActionListener(contapli);
	}
	}
